<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html"%>
    <script type="text/javascript" src="${ctx}/appjs/log/tenantOperateLog.js"></script>
	<link rel="stylesheet" href="${ctx}/statics/css/common.css?v=20200825">
</head>

<script type="text/javascript">
	$('#topLink', window.parent.document).html(function (i, origText) {
		return'<ol class="breadcrumb">' +
				'<li class="breadcrumb-item">' +
				'<a href="">主页</a>' +
				'</li>' +
				'<li class="breadcrumb-item">' +
				'<a>日志</a>' +
				'</li>' +
				'<li class="breadcrumb-item">' +
				'<strong>运营商端操作日志</strong>' +
				'</li>' +
				'</ol>';
	});
</script>

<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="row">
						<%--<div class="pull-left search col-md-2">--%>
							<%--<input id="tenantOperatorCode" name="tenantOperatorCode" type="text" placeholder="分销商编号" class="form-control" >--%>
						<%--</div>--%>
						<div class="pull-left search col-md-2">
							<input id="startTime" name="startTime" style="width: 100% !important;" type="text"  placeholder="开始时间" class="form-control" />
						</div>
						<%--<div class="pull-left search">--%>
							<%--<label for="endTime">至</label>--%>
						<%--</div>--%>
						<div class="pull-left search col-md-2">
							<input id="endTime" name="endTime" style="width: 100% !important;" type="text"  placeholder="结束时间" class="form-control" autocomplete="off"/>
						</div>
						<div class="pull-left search col-md-2">
							<input id="operator" name="operator" style="width: 100% !important;" type="text"  placeholder="操作人" class="form-control" autocomplete="off"/>
						</div>
						<div class="pull-left search col-md-2">
							<button class="btn btn-success" onclick="tenantOperateLog.reLoad()">
								<i class="fa fa-search" aria-hidden="true"></i>查询
							</button>
							<button type="button" class="btn btn-success marginLeft-auto input-distance exportBtn" onclick="tenantOperateLog.exportList()">导出</button>
						</div>
					</div>
					<%--<div class="row"><br></div>--%>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>
	</div>

	<script type="application/javascript">
		var thisDate = new Date();
		var year = thisDate.getFullYear();
		var month = thisDate.getMonth() + 1;
		var date = thisDate.getDate();
		if (month < 10) {
			month = '0' + month
		}
		if (date < 10) {
			date = '0' + date
		}
		$('#startTime').val(year + '-' + month + '-' + date + ' ' + '00:00:00');
	</script>

	<script type="text/javascript">
		layui.use('laydate', function () {
			var laydate = layui.laydate;

			var startTime = laydate.render({
				elem: '#startTime',
				type: 'date',
				format: 'yyyy-MM-dd HH:mm:ss',
				trigger: 'click'
			});
			var endTime = laydate.render({
				elem: '#endTime',
				type: 'date',
				format: 'yyyy-MM-dd HH:mm:ss',
				trigger: 'click'
			});

		});
		tenantOperateLog.init();
	</script>
</body>
</html>
